package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysPjBaseRecordMapper;
import com.ruoyi.system.domain.SysPjBaseRecord;
import com.ruoyi.system.service.ISysPjBaseRecordService;

/**
 * 磐基运维任务跟踪详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-10
 */
@Service
public class SysPjBaseRecordServiceImpl implements ISysPjBaseRecordService 
{
    @Autowired
    private SysPjBaseRecordMapper sysPjBaseRecordMapper;

    /**
     * 查询磐基运维任务跟踪详情
     * 
     * @param id 磐基运维任务跟踪详情主键
     * @return 磐基运维任务跟踪详情
     */
    @Override
    public SysPjBaseRecord selectSysPjBaseRecordById(Long id)
    {
        return sysPjBaseRecordMapper.selectSysPjBaseRecordById(id);
    }

    /**
     * 查询磐基运维任务跟踪详情列表
     * 
     * @param sysPjBaseRecord 磐基运维任务跟踪详情
     * @return 磐基运维任务跟踪详情
     */
    @Override
    public List<SysPjBaseRecord> selectSysPjBaseRecordList(SysPjBaseRecord sysPjBaseRecord)
    {
        return sysPjBaseRecordMapper.selectSysPjBaseRecordList(sysPjBaseRecord);
    }

    /**
     * 新增磐基运维任务跟踪详情
     * 
     * @param sysPjBaseRecord 磐基运维任务跟踪详情
     * @return 结果
     */
    @Override
    public int insertSysPjBaseRecord(SysPjBaseRecord sysPjBaseRecord)
    {
        sysPjBaseRecord.setCreateTime(DateUtils.getNowDate());
        return sysPjBaseRecordMapper.insertSysPjBaseRecord(sysPjBaseRecord);
    }

    /**
     * 修改磐基运维任务跟踪详情
     * 
     * @param sysPjBaseRecord 磐基运维任务跟踪详情
     * @return 结果
     */
    @Override
    public int updateSysPjBaseRecord(SysPjBaseRecord sysPjBaseRecord)
    {
        sysPjBaseRecord.setUpdateTime(DateUtils.getNowDate());
        return sysPjBaseRecordMapper.updateSysPjBaseRecord(sysPjBaseRecord);
    }

    /**
     * 批量删除磐基运维任务跟踪详情
     * 
     * @param ids 需要删除的磐基运维任务跟踪详情主键
     * @return 结果
     */
    @Override
    public int deleteSysPjBaseRecordByIds(Long[] ids)
    {
        return sysPjBaseRecordMapper.deleteSysPjBaseRecordByIds(ids);
    }

    /**
     * 删除磐基运维任务跟踪详情信息
     * 
     * @param id 磐基运维任务跟踪详情主键
     * @return 结果
     */
    @Override
    public int deleteSysPjBaseRecordById(Long id)
    {
        return sysPjBaseRecordMapper.deleteSysPjBaseRecordById(id);
    }
}
